package com.bestdreamer.transdata;

public class Demo1Run {

    public static void main(String[] args) {
        try{
            Object lock = new Object();
            Demo1ThreadA threadA = new Demo1ThreadA(lock);
            threadA.start();
            Thread.sleep(50);
            Demo1ThreadB threadB = new Demo1ThreadB(lock);
            threadB.start();
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
